package com.ExceptionPWTest;

public class ThrowTest {
    public static void main(String[] args) {
        Student s = new Student();
        try {
            s.setAge(1000);
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println(s.getAge());
    }
}
